package strategy;

/**
 * 野鸭
 */
public class WildDuck extends Duck {
    public WildDuck() {
        super("野鸭");
    }

    public void quack() {
        System.out.println(name + "叫的很大声");
    }

    public void swim() {
        System.out.println(name + "会游泳");
    }

    public void fly() {
        System.out.println(name + "会飞翔");
    }
}
